package com.sright.bcard.common.service.share.dto.content;

import com.sright.bcard.common.service.share.dto.BaseDomain;
import lombok.Data;

import java.util.List;

@Data
public class DataResultDTO extends BaseDomain {
    private static final long serialVersionUID = 3561262254079587211L;

    /**
     * numberVisits : 5
     * numberEnterpriseVisits : 0
     * numberJumps : 0
     * numberReturns : 0
     * numberClicks : 0
     * numberVisitsPercent : 100%
     * numberEnterpriseVisitsPercent : 0.0%
     * numberClicksPercent : 0%
     * today : [{"date":"2020-08-19","format":"08.19","time01":0,"time02":0},{"date":"2020-08-20","format":"08.20","time01":0,"time02":0},{"date":"2020-08-21","format":"08.21","time01":0,"time02":0},{"date":"2020-08-22","format":"08.22","time01":0,"time02":0},{"date":"2020-08-23","format":"08.23","time01":0,"time02":0},{"date":"2020-08-24","format":"08.24","time01":0,"time02":0},{"date":"2020-08-25","format":"08.25","time01":0,"time02":0}]
     * dayAgo7 : [{"date":"2020-08-12","format":"08.12","time01":0,"time02":0},{"date":"2020-08-13","format":"08.13","time01":0,"time02":0},{"date":"2020-08-14","format":"08.14","time01":0,"time02":0},{"date":"2020-08-15","format":"08.15","time01":0,"time02":0},{"date":"2020-08-16","format":"08.16","time01":0,"time02":0},{"date":"2020-08-17","format":"08.17","time01":0,"time02":0},{"date":"2020-08-18","format":"08.18","time01":0,"time02":0}]
     * dayAgo14 : [{"date":"2020-08-05","format":"08.05","time01":0,"time02":0},{"date":"2020-08-06","format":"08.06","time01":0,"time02":0},{"date":"2020-08-07","format":"08.07","time01":0,"time02":0},{"date":"2020-08-08","format":"08.08","time01":0,"time02":0},{"date":"2020-08-09","format":"08.09","time01":0,"time02":0},{"date":"2020-08-10","format":"08.10","time01":0,"time02":0},{"date":"2020-08-11","format":"08.11","time01":0,"time02":0}]
     */

    private Integer numberVisits;
    private Integer numberEnterpriseVisits;
    private Integer numberJumps;
    private Integer numberReturns;
    private Integer numberClicks;
    private String numberVisitsPercent;
    private String numberEnterpriseVisitsPercent;
    private String numberClicksPercent;
    private List<VisitorDataByWeekBean> today;
    private List<VisitorDataByWeekBean> dayAgo7;
    private List<VisitorDataByWeekBean> dayAgo14;

    @Data
    public static class VisitorDataByWeekBean {
        /**
         * date : 2020-08-19
         * format : 08.19
         * time01 : 0
         * time02 : 0
         */

        private String format;
        private Float time01;
        private Float time02;
    }
}
